Again, for your convenience, you can load the data for this exercise using the following code:
library(dplyr)
library(haven)
gp_covid <-
read_sav(
"./data/ZA5667_v1-1-0.sav"
) %>%
sjlabelled::set_na(na = c(-1:-99, 97))
par() function in combination with its mfrow option.
That’s interesting. One may wonder what the median is in each of these distributions. You know what’s perfect for visualizing this statistic? Boxplots!
boxplot().
png image.
base R graphics as png is png() with the filename as argument.
Before we later start with the other exercises, you may want to consider to clean your graphics device with dev.off()
dev.off()
## null device
## 1